package com.ruoyi.module.business;

import lombok.RequiredArgsConstructor;
import java.util.List;

import org.springframework.stereotype.Service;
import com.ruoyi.module.domain.BookExtInfo;
import com.ruoyi.module.service.CmBookInfoExtService;

/**
 * 图书扩展信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-13
 */
@Service
@RequiredArgsConstructor
public class CmBookInfoExtBusiness
{
    private final CmBookInfoExtService cmBookInfoExtService;

    /**
     * 查询图书扩展信息
     * 
     * @param id 图书扩展信息主键
     * @return 图书扩展信息
     */
    public BookExtInfo selectCmBookInfoExtById(Long id)
    {
        return cmBookInfoExtService.selectCmBookInfoExtById(id);
    }

    /**
     * 查询图书扩展信息列表
     * 
     * @param cmBookInfoExt 图书扩展信息
     * @return 图书扩展信息
     */
    public List<BookExtInfo> selectCmBookInfoExtList()
    {
        return cmBookInfoExtService.selectCmBookInfoExtList();
    }

    /**
     * 新增图书扩展信息
     * 
     * @param cmBookInfoExt 图书扩展信息
     * @return 结果
     */
    public int insertCmBookInfoExt(BookExtInfo cmBookInfoExt)
    {
        return cmBookInfoExtService.insertCmBookInfoExt(cmBookInfoExt);
    }

    /**
     * 修改图书扩展信息
     * 
     * @param cmBookInfoExt 图书扩展信息
     * @return 结果
     */
    public int updateCmBookInfoExt(BookExtInfo cmBookInfoExt)
    {
        return cmBookInfoExtService.updateCmBookInfoExt(cmBookInfoExt);
    }

    /**
     * 批量删除图书扩展信息
     * 
     * @param ids 需要删除的图书扩展信息主键
     * @return 结果
     */
    public int deleteCmBookInfoExtByIds(List<Long> ids)
    {
        return cmBookInfoExtService.deleteCmBookInfoExtByIds(ids);
    }

    /**
     * 删除图书扩展信息信息
     * 
     * @param id 图书扩展信息主键
     * @return 结果
     */
    public int deleteCmBookInfoExtById(Long id)
    {
        return cmBookInfoExtService.deleteCmBookInfoExtById(id);
    }
}
